package com.example.pojo;

/**
 * ClassName: User
 * Package: pojo
 * Description:
 *
 * @Author liu
 * @Create 2025/5/27 9:45
 * @ Version 1.0
 */
public class User {
    private String id;
    private String name;
    private String employeename;
    private String password;
    private Dormitory dormitory;

    public User() {
        // 原构造函数逻辑有误，这里修正
    }

    public User(String id, String name, String employeename, String password, Dormitory dormitory) {
        this.id = id;
        this.name = name;
        this.employeename = employeename;
        this.password = password;
        this.dormitory = dormitory;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    public String getEmployeename() {
        return employeename;
    }

    public void setEmployeename(String employeename) {
        this.employeename = employeename;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Dormitory getDormitory() {
        return dormitory;
    }

    public void setDormitory(Dormitory dormitory) {
        this.dormitory = dormitory;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", employeename='" + employeename + '\'' +
                ", password='" + password + '\'' +
                ", dormitory=" + dormitory +
                '}';
    }
}
